# CMakeList.txt: gitstore 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 17)
#project(GitStoreGrpcClient)
#set(CMAKE_BUILD_TYPE "Debug")
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -g2 -ggdb -ldl -pthread")
#set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -Wall -g2 -ggdb -ldl -pthread")
#add_definitions(-D _FILE_OFFSET_BITS=64)

include_directories("/usr/include" "/usr/local/include/etcd" "/usr/local/include/etcd/proto" "../GitStoreGrpcLib")
link_directories("/usr/lib" "/usr/local/lib" "/usr/lib/x86_64-linux-gnu")

# 将源代码添加到此项目的可执行文件。
add_executable (GitStoreGrpcClient "main.cpp" "CommandLineParser.h" "CommandLineParser.cpp" "CommandDefine.h" "CommandDefine.cpp")
target_link_libraries(GitStoreGrpcClient grpc++ grpc grpc++_reflection cares ssl protobuf address_sorting gpr pthread cpprest GitStoreMeta GitStoreGrpcLib)
# TODO: 如有需要，请添加测试并安装目标。
